//package com.demo.controller;
//
//import com.demo.Office.entity.system.Menu;
//import com.demo.Office.service.system.MenuService;
//import com.demo.Office.tree.MenuTree;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
////@RestController
////@RequestMapping
////public class IndexController {
////
////    @Autowired
////    private MenuService menuService;
////
////    @GetMapping
////    private List<Menu> getMenuList() {
////        List<Menu> list = menuService.lambdaQuery().select().list();
////        MenuTree menuTree = new MenuTree();
////        List<Menu> tree = menuTree.createTree(list, 0);
////        return tree;
////    }
////}
